using System.IO;

namespace Lottery.Client.SL
{
    public class ChgPwdData
    {
        public string OldPassword;
        public string NewPassword;
        public ChgPwdData()
        {
            this.OldPassword = "";
            this.NewPassword = "";
        }
        public byte[] GetBytes()
        {
            MemoryStream memoryStream = new MemoryStream();
            BinaryWriter binaryWriter = new BinaryWriter(memoryStream);
            binaryWriter.Write(this.OldPassword);
            binaryWriter.Write(this.NewPassword);
            binaryWriter.Close();
            memoryStream.Close();
            return memoryStream.ToArray();
        }
    }
}